#ifndef	_CONFIG_H_
#define	_CONFIG_H_

#define INNER_FLASH_STORAGE_START	(0x08000000 + 62*1024)
#define INNER_FLASH_STORAGE_SIZE	(1024*2)
#define INNER_FLASH_STOREGE_PER		((sizeof(RESTORE_DATA)+3)/4*4)
#define ID_FOR_STORAGE	0x95270002

#define DEBUG_ON				1
#define DEBUG_MSG
#define DEBUG_NOCHECK			0

#include <stdio.h>

#include <string.h>


#include "stm32f10x.h"
#include "def.h"
#include "fifo.h"

#include "moduleSelect.h"

#include "commonFunc.h"


#include "sGPIO.h"
#include "macrodef.h"
#include "_stm32_it.h"
#include "SysTimer.h"
#include "IO_ctrl.h"
#include "baseDATAdef.h"
#include "uartApp.h"
#include "ant_proc.h"

#include "naviBoard.h"
#include "ACCProcessor.h"

#include "debug.h"

#include "shellEve.h"

#include "flashOperation.h"



/* <DEBUG> */
#ifdef D_DEBUG
/* A C99 compiler is needed for this expression! */
/* <recommended usage> DEBUG_INFO("<module_name>info");
 * eg. DEBUG_INFO("<uart>Rx message checksum error!");
 * */
#define DEBUG_INFO(...)     DBG_Print(__VA_ARGS__)
#else
#define DEBUG_INFO(...)
#endif  /* ifdef D_DEBUG */
/* </DEBUG> */

void WDR_Init(char WDR_Mode);
void WDR(void);
void NVIC_Configuration(enum IRQn iIRQn,u8 PreePriority,u8 SubPriority,FunctionalState bEnable);
void MakeItSeemedReset(u8 para);
void BusyButNeedToDo(void);
void FreeIdel(void);
/******************* (C) COPYRIGHT 20100814 JQilin*****END OF FILE****/

#endif
